﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Matthew
{
    public partial class FrmMenu : Form
    {
        public FrmMenu()
        {
            InitializeComponent();
        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure you wish to exit?", "Exit", MessageBoxButtons.YesNo);
            if (result == DialogResult.Yes)
            {
                Application.Exit();
            }
        }

        private void btnOrder_Click(object sender, EventArgs e)
        {
            this.Hide();
            AllFormClass.FormOrder.Show();
        }

        private void btnInvoice_Click(object sender, EventArgs e)
        {
            this.Hide();
            AllFormClass.FormInvoice.Show();
        }

        private void btnSettings_Click(object sender, EventArgs e)
        {
            AllFormClass.FormSettings.Initialize();

            this.Hide();
            AllFormClass.FormSettings.Show();
        }
    }
}
